package com.jic.order.controller.manage;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.order.manage.request.OrderRefundRequest;
import com.jic.order.manage.response.OrderRefundResponse;
import com.jic.order.service.OrderRefundService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by HeJun on 2020/2/29
 *
 * @Description:
 */
@Api(tags = "订单退款列表")
@RestController
@RequestMapping("/OrderRefund")
@Slf4j
public class OrderRefundController {

    @Autowired
    OrderRefundService orderRefundService;

    @ApiOperation(value = "获取订单退款列表信息")
    @PostMapping("/queryPage")
    public RestResult<PageResult<OrderRefundResponse>> queryPage(@RequestBody OrderRefundRequest orderRefundRequest) {
        return orderRefundService.queryPage(orderRefundRequest);
    }

}

